export interface IGraphqlConfig {
  playgroundEnabled: boolean;
  debug: boolean;
  schemaDestination: string;
  sortSchema: boolean;
}

export interface ISecurityConfig {
  expiresIn: number;
}

export interface IConfig {
  graphql: IGraphqlConfig;
  security: ISecurityConfig;
}

export const config = (): IConfig => ({
  graphql: {
    playgroundEnabled: true,
    debug: true,
    schemaDestination: 'schema.graphql',
    sortSchema: true,
  },
  security: {
    expiresIn: 7 * 24 * 60 * 60,
  },
});
